package com.igogogo.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mr.Chen
 * @since 2018-07-01
 */
public class Departments extends Model<Departments> {

    private static final long serialVersionUID = 1L;

    /**
     * 部门编号
     */
    @TableId(value = "did", type = IdType.AUTO)
    private Integer did;
    /**
     * 部门名称
     */
    private String dname;


    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    @Override
    protected Serializable pkVal() {
        return this.did;
    }

    @Override
    public String toString() {
        return "Departments{" +
        ", did=" + did +
        ", dname=" + dname +
        "}";
    }
}
